<?=$header?>

<body>

	<?=$navigate?>

	<!-- MAIN CONTENT -->

    <div id="content">

		<?=$js?>

		<div class="page-full-width cf">



			<?=$sidebarleft?>

			

			<div class="side-content fr">

			

				

				<div class="content-module">

				

					<div class="content-module-heading cf">

					

						<h3 class="fl"><?=$title_page?></h3>

						<span class="fr expand-collapse-text">Click to collapse</span>

						<span class="fr expand-collapse-text initial-expand">Click to expand</span>

					

					</div> <!-- end content-module-heading -->

					

					

					<div class="content-module-main cf">

				

						<div class="half-size-column fl">

                            <?php 

                                $fieldCodeStaff = '';

                                $fieldLastName = '';
                                

                                $inputCodeError = '';

                                $inputLastNameError = '';

                                if(form_error('name') != ''){

                                    $fieldCodeStaff = 'form-error';

                                    $inputCodeError = 'error-input';

                                }

                                if(form_error('description') != ''){

                                    $fieldLastName = 'form-error';

                                    $inputLastNameError = 'error-input';

                                }

                            ?>

                            <?php echo form_open('department/addDepartment', array('method'=>'POST', 'id'=>'kform')); ?>

	                           

								<fieldset>

                                    <p class='<?php echo $fieldCodeStaff; ?>'>

										<label for="simple-input">Name Department</label>

										<input value="<?php echo set_value('name'); ?>" type="text" id="name" name="name" class="round default-width-input <?php echo $inputCodeError; ?>" />

                                        <?php echo form_error('name', '<em>', '</em>'); ?>

									</p>

									<p class='<?php echo $fieldLastName; ?>'><!--class="form-error"-->

										<label for="simple-input">Description</label>

										<input value="<?php echo set_value('description'); ?>" type="text" id="description" name="description" class="round default-width-input <?php echo $inputLastNameError; ?>" />

                                        <?php echo form_error('description', '<em>', '</em>'); ?>							

									</p>

									<input type="submit" value="Add" name="submit" class="round blue ic-right-arrow" />

								</fieldset>

							

							</form>

						

						</div> <!-- end half-size-column -->

				

					</div> <!-- end content-module-main -->

					

				</div> <!-- end content-module -->

	

				

			</div> <!-- end side-content -->

		

		</div> <!-- end full-width -->

			

	</div> 

	<!-- end content -->

	

	

	

	<!-- FOOTER -->

	<?=$footer?>

    <!-- end footer -->



</body>

</html>